import request from '@/utils/request'

export function addNotice(data) {
  return request({
    url: '/system/notice/insertNotice',
    method: 'post',
    data
  })
}

export function getNoticeList(data) {
  return request({
    url: '/system/notice/query/page',
    method: 'post',
    data
  })
}

export function editNotice(data) {
  return request({
    url: '/system/notice/updateNotice',
    method: 'put',
    data
  })
}

export function deleteNotice(data) {
  return request({
    url: '/system/notice/deleteBatchByIds',
    method: 'delete',
    data
  })
}
